//
//  ViewController.m
//  访问者模式
//
//  Created by flannery on 2018/12/18.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import "ViewController.h"
#import "ComputerPart.h"
#import "ComputerPartVisitor.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    id<ComputerPart> computer = Computer.new;
    [computer accept:ComputerPartVisitor.new];
}


@end
